loadFormKey: function (opt) {
    var that = this;
    co(function *() {
        let dataService = require('../services/dataService');
        let formKey = yield dataService.getFormKey(opt.formId);
        console.log(formKey);
        that.setData({
            formConfigs: formKey.formConfigs,
            formEvents: formKey.formEvents,
            formName: formKey.formName,
            formId:opt.formId
        });
    });
},
formSubmit: function(e) {
   let value = e.detail.value;
   let formId = e.target.id;
   co(function *() {
     let dataService = require('../services/dataService');
     let ret = yield dataService.saveFormData(formId,value);
     if (ret == 0) {
       wx.showToast({
          title: "提交信息成功",//这里打印出登录成功
          icon: 'success',
          duration: 1000
       });
     } else {
       wx.showToast({
          title: "服务器繁忙",
          icon: 'error',
          duration: 1500
        });
     }
  });
},
